package com.gzdh.tang.comm.handler;


import com.alibaba.fastjson.JSONObject;

public interface IPayRuleHandler {

    /**
     * 发起支付操作
     *
     * @param params
     * @return
     */
    JSONObject toCardPay(JSONObject params) throws RuntimeException;

    /**
     * 现金支付操作
     *
     * @param params
     * @return
     * @throws RuntimeException
     */
    JSONObject toCashPay(JSONObject params) throws RuntimeException;


    /**
     * 二维码支付
     *
     * @param params
     * @return
     * @throws RuntimeException
     */
    JSONObject toQrPay(JSONObject params) throws RuntimeException;


    /**
     * 人脸支付
     *
     * @param params
     * @return
     * @throws RuntimeException
     */
    JSONObject toFacePay(JSONObject params) throws RuntimeException;
}
